import java.math.BigInteger;


public class Id_List implements Node{
	public String token = "<id list>";
	public Node id;
	public Node id_list = null;
	
			
	public Id_List(){
		this.id = new Id();
		// next token should be ; or begin
		int token = PSTree.Core_TK.getToken();	
		if (token == 13){
			// if token is , get next id list
			PSTree.Core_TK.skipToken();
			// skip , token. get id_list
			this.id_list = new Id_List();
			
		}
		
		
	}


	@Override
	public void print(int indent) {
		this.id.print(indent);
		if(this.id_list != null){
			System.out.print(", ");
			this.id_list.print(indent);
		}
		
	}


	
	public void execute() {
		// TODO Auto-generated method stub
		
	}


	@Override
	public BigInteger intexecute() {
		this.id.intexecute();
		if(this.id_list != null){
			this.id_list.intexecute();
		}
		return null;
	}


	@Override
	public boolean compexecute() {
		// TODO Auto-generated method stub
		return false;
	}


	@Override
	public String Stringexcec() {
		// TODO Auto-generated method stub
		return null;
	}
}
